package jy.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Tdata entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tdata", catalog = "jlubank")
public class Tdata implements java.io.Serializable {

	// Fields

	private String dataname;
	private String name;
	private float datavalue;

	// Constructors

	/** default constructor */
	public Tdata() {
	}

	/** full constructor */
	public Tdata(String dataname,String name, float datavalue) {
		this.dataname = dataname;
		this.dataname = name;
		this.datavalue = datavalue;
	}

	// Property accessors
	@Id
	@Column(name = "dataname", unique = true, nullable = false)
	public String getDataname() {
		return this.dataname;
	}

	public void setDataname(String dataname) {
		this.dataname = dataname;
	}
	
	@Column(name = "name", unique = true, nullable = false)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "datavalue", nullable = false, precision = 12, scale = 0)
	public float getDatavalue() {
		return this.datavalue;
	}

	public void setDatavalue(float datavalue) {
		this.datavalue = datavalue;
	}

}